import request from "@/utils/request";

// 查询厂家管理列表
export function listFactoryManagement(query) {
  return request({
    url: "/ruoyi-managerapi/management/list",
    method: "get",
    params: query,
  });
}

// 查询厂家管理详细
export function getFactoryManagement(id) {
  return request({
    url: "/ruoyi-managerapi/management/" + id,
    method: "get",
  });
}

// 新增厂家管理
export function addFactoryManagement(data) {
  return request({
    url: "/ruoyi-managerapi/management",
    method: "post",
    data: data,
  });
}

// 修改厂家管理
export function updateFactoryManagement(data) {
  return request({
    url: "/ruoyi-managerapi/management",
    method: "put",
    data: data,
  });
}

// 删除厂家管理
export function delFactoryManagement(id) {
  return request({
    url: "/ruoyi-managerapi/management/" + id,
    method: "delete",
  });
}
